@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './x6.scss';
@import './btn.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, 微软雅黑, Arial, sans-serif;
  font-size: 14px;
}


html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

// 滚动条兼容火狐
* {
  scrollbar-width: thin;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0 !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin: 20px 0;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

//增加 2019/10/12
.mod-config {
  margin: 30px;

  .el-table {
    margin-bottom: 22px;
  }

  .el-pagination {
    text-align: right;
  }
}

.no-allselect {
  height: 0;
}

::-webkit-scrollbar {
  width: 6px;
  height: 9px;
  background-color: rgba(255, 255, 255, 0); /*其他样式,比如圆角等*/
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(177, 177, 177, 0.5);
  border-radius: 3px;
}

::-webkit-scrollbar-track-piece {
  background: rgba(93, 93, 93, 0.1);
  border-radius: 3px;
}


.table-el-tag .el-tag {
  margin: 0 8px 8px 0;
  height: 32px;
  line-height: 32px;
}

.dialog-vertical-center {
  display: flex;
  justify-content: center;
  align-items: center;

  .el-dialog {
    margin: 0;
    max-height: calc(100% - 34px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;

    .el-dialog__body {
      height: 100%;
      overflow: auto;
    }
  }

  &.dialog-body-padding-top-bottom-0 {
    .el-dialog__body {
      padding-top: 0;
      padding-bottom: 0;
    }
  }
}

.el-form-item.not-error {
  margin-bottom: 10px;
}

.el-form-item.not-error-0 {
  margin-bottom: 0;
}

.table-ng-scope {
  .row {
    margin: 0;

    .ng-isolate-text {
      &.id {
        color: $--color-blue;
        font-weight: 500;

        &:hover {
          text-decoration: underline;
        }
      }

      &.url {
        max-width: calc(100% - 25px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
        line-height: 14px;

        &:hover {
          text-decoration: underline;
        }
      }
    }

    .ng-isolate-scope {
      opacity: 0;
      padding: 0;
      color: #999;
    }

    &:hover {
      .ng-isolate-scope {
        opacity: 1;
      }
    }
  }
}


.displayFlexForm {
  display: flex;

  .el-form-item {
    flex: 1;
  }
}

.displayFlex {
  display: flex;

  &.align-items-center {
    align-items: center;
  }

  &.justify-content-flex-end {
    justify-content: flex-end;
  }

  .flex1 {
    flex: 1;
  }

  &.el-form-item {
    display: block;

    .el-form-item__content {
      display: flex;

      .flex1 {
        padding-right: 4px;
      }
    }
  }

  &.flex-wrap-wrap {
    flex-wrap: wrap;
  }
}

.tableMainLabel {
  color: $--color-blue;
}

.text-bold {
  font-weight: 700;
}

.width100 {
  width: 100%;
}

.height100 {
  height: 100%;
}

.floatRight {
  float: right;
}

.el-date-picker-a-i-dialog {
  z-index: 9999 !important;
}

.label-handle-popover {
  .label-list {
    padding: 4px 0 0 0;
    max-height: 345px;
    overflow: auto;

    li {
      display: flex;
      align-items: stretch;
      position: relative;
      margin-top: 6px;
      border: 1px solid #e9e9eb;
      border-radius: 4px;
      background-color: #f4f4f5;

      .text {
        padding: 8px 10px;
        flex: 1;
        display: inline-block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        word-break: keep-all;
        width: 100%;
      }

      .color-picker {
        width: 36px;
        height: 36px;
        padding: 4px;
        border: 1px solid #e6e6e6;
        border-radius: 4px;

        .inside {
          width: 100%;
          height: 100%;
        }
      }
    }
  }
}

.el-button-left-10 {
  margin-left: 10px;
}

.el-table__column-filter-trigger {
  margin-left: 6px;
}

.cursorDefault {
  cursor: default;
}

.cursorPointer {
  cursor: pointer;
}

.textareaNotResize {
  &.el-textarea {
    textarea {
      resize: none;
    }
  }
}


.font-weight-600 {
  font-weight: 600;
}

.el-textarea.show-word-limit {
  &.readonly {
    .el-textarea__inner {
      padding: 5px 15px;
    }
  }

  .el-textarea__inner {
    padding: 5px 56px 5px 15px;
  }

  .el-input__count {
    bottom: 3px;
    height: 28px;
  }
}

.el-tooltip__popper {
  max-width: 400px;
}

.el-form--inline .el-form-item {
  margin-right: 0;
  margin-bottom: 0;
}

.padding0 {
  padding: 0;
}

.el-icon-success {
  color: $--color-green;
}

.el-icon-error {
  color: $--color-red;
}

.margin-top-10 {
  margin-top: 10px;
}

.vxe-table--tooltip-wrapper {
  z-index: 99999 !important;
}

h1, h2, h3, h4, h5, h6, p, ul {
  margin: 0;
}

.conditionScreenPopover {
  .el-select-dropdown__list {
    max-height: 400px;
    overflow: auto;

    .el-select-dropdown__item {
      padding: 0 10px;
    }
  }
}

.tighten-tabs {
  .el-tabs__header {
    margin: 0;
  }

  .el-tabs__item {
    height: 33px;
    line-height: 33px;
  }

  .el-tabs__active-bar {
    height: 1px;
  }

  .el-tabs__nav-wrap::after {
    height: 1px;
  }

  .el-tabs__nav-prev, .el-tabs__nav-next {
    line-height: 33px;
  }
}

.el-image {
  width: 100%;
  height: 100%;
}

.lalala {
  color: black;
}
